 |
|
|
|
|
Parallel Arrays |
|
|
|
| |
 |
|
|
|
|
Creating a Menu Item Array |
|
|
|
| |
 |
|
|
|
|
Loading and Unloading Controls at Runtime |
|
|
|
| |
 |
|
|
|
|
Creating the First Element of a Control Array |
|
|
|
| |
 |
|
|
|
|
Adding Controls at Runtime |
|
|
|
| |
 |
|
|
|
|
Removing Controls at Runtime |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
14
Creating ActiveX Controls |
|
|
|
| |
 |
|
|
|
|
ActiveX Basics |
|
|
|
| |
 |
|
|
|
|
Steps Involved in Building ActiveX Controls |
|
|
|
| |
 |
|
|
|
|
Development Strategies |
|
|
|
| |
 |
|
|
|
|
Creating an ActiveX Control |
|
|
|
| |
 |
|
|
|
|
Starting the Address Control Project |
|
|
|
| |
 |
|
|
|
|
Adding Resize Code to the Control |
|
|
|
| |
 |
|
|
|
|
Adding a New Property to Your Control |
|
|
|
| |
 |
|
|
|
|
Testing the ActiveX Control |
|
|
|
| |
 |
|
|
|
|
Testing with a Project Group |
|
|
|
| |
 |
|
|
|
|
Testing with Internet Explorer |
|
|
|
| |
 |
|
|
|
|
Compiling Your Control |
|
|
|
| |
 |
|
|
|
|
Creating the OCX File |
|
|
|
| |
 |
|
|
|
|
Testing the Compiled Control |
|
|
|
| |
 |
|
|
|
|
Distributing the Control to Another Machine |
|
|
|
| |
 |
|
|
|
|
Enhancing an ActiveX Control |
|
|
|
| |
 |
|
|
|
|
Setting Up the Base Control |
|
|
|
| |
 |
|
|
|
|
Enhancing the Base Control |
|
|
|
| |
 |
|
|
|
|
Testing the Limited Character Text Box |
|
|
|
| |
 |
|
|
|
|
Choosing a Toolbox Icon |
|
|
|
| |
 |
|
|
|
|
Using the ActiveX Control Interface Wizard |
|
|
|
| |
 |
|
|
|
|
Adding the Wizard to Visual Basic |
|
|
|
| |
 |
|
|
|
|
Selecting and Creating Properties |
|
|
|
| |
 |
|
|
|
|
Mapping Properties |
|
|
|
| |
 |
|
|
|
|
Finishing the Code |
|
|
|
| |
 |
|
|
|
|
Using the Property Pages Wizard |
|
|
|
| |
 |
|
|
|
|
Creating the Pages |
|
|
|
| |
 |
|
|
|
|
Adding Properties to the Pages |
|
|
|
| |
 |
|
|
|
|
Using the Property Pages in your Applications |
|
|
|
| |
 |
|
|
|
|
Creating a User-Drawn ActiveX Control |
|
|
|
| |
 |
|
|
|
|
Starting the Project |
|
|
|
| |
 |
|
|
|
|
Creating the User Interface |
|
|
|
| |
 |
|
|
|
|
Creating the Properties of the Button |
|
|
|
| |
 |
|
|
|
|
Setting Up the Button's Events |
|
|
|
| |
 |
|
|
|
|
Creating Property Pages for the Button |
|
|
|
| |
 |
|
|
|
|
Testing the Color Button in a Program |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
15
Extending ActiveX Controls |
|
|
|
| |
 |
|
|
|
|
Using the Ambient Object to Maintain Uniformity |
|
|
|
| |
 |
|
|
|
|
Setting Up an Ambient Object Example |
|
|
|
| |
 |
|
|
|
|
Keeping Track of the Ambient Colors |
|
|
|
| |
 |
|
|
|
|
Properties of the Ambient Object |
|
|
|
| |
 |
|
|
|
|
Introducing the Extender Object |
|
|
|
| |
 |
|
|
|
|
Building the Calculator Control |
|
|
|
| |
 |
|
|
|
|
Creating the Control |
|
|
|
| |
 |
|
|
|
|
Creating the Interface |
|
|
|
| |
 |
|
|
|
|
Setting Up the Operation Property |
|
|
|
| |
 |
|
|
|
|
Coding Methods and Events |
|
|
|
| |
 |
|
|
|
|
Testing the Control |
|
|
|
| |
 |
|
|
|
|
Creating Property Pages |
|
|
|
| |
 |
|
|
|
|
Creating Property Page Objects |
|
|
|
| |
 |
|
|
|
|
Placing Controls on the Property Pages |
|
|
|
| |
 |
|
|
|
|
Implementing the SelectionChanged Event Procedure |
|
|
|
| |
 |
|
|
|
|
Implementing the Change Event Procedures |
|
|
|
| |
 |
|
|
|
|
Implementing the ApplyChanges Event Procedure |
|
|
|
| |